<div id="register">	
	<!--显示注册流程-->		
	<div class="regsteps">
		<ul class="num3">
			<li><span>1.选择身份</span></li>
			<li><span>2.填写注册信息</span></li>
			<li class="current"><span>3.邮件激活</span></li>
			<li><span>4.注册成功</span></li>
		</ul>
	</div>
		<% if @user %>
			<% if !@user.active?%>	        
				<div class="sendmail">
					<% @domain = @user.email[@user.email.rindex(/@/)+1,@user.email.length] -%>
		           <h2><font color="#FF6633">我们已将验证信发送到您的电子邮箱,请<a href='<%="http://mail.#{@domain}/"%>' target="_blank" >确认收信</a>，确认后即可注册成功！</font></h2>
		           <p>若果你的邮箱有误，请<label class="modify_email"><a href="#">点此修改</a></label></p> 
		               <div class="modify_email" id="email" style="display:none;">
		                  <% form_remote_tag(:url => { :action=>'modifyemail',:id => @user},
											 :update => 'email') do %>
		                      电子邮件<%=text_field_tag('email')%><br>
		                      <%=submit_tag('确定')%>
		                   <%end%>
		               </div>
		           <p>若果没有收到验证邮件，你还可以
					<font color="#FF9966">
						<%=link_to_remote "点此重新验证",:url =>{:controller => "admin/users",:action => :sendmail,:id=>@user.username},
													   :update => "notice" %>
					</font>
				   </p>
		        </div>
			<% else %>
				<div>
					<p>
						您的帐号已激活
					</p>
				</div>
			<% end %>	
		<% end %>
</div>		